import org.restlet.data.MediaType;
import java.text.SimpleDateFormat;
import java.sql.Timestamp;


if(oldValue instanceof Timestamp)
{
	SimpleDateFormat parser = new SimpleDateFormat();
	parser.applyPattern("dd-mm-yyyy HH:mm:ss.SSS");
	oldValue = parser.format(oldValue);
}else	
if(oldValue instanceof Date)
{
	SimpleDateFormat parser = new SimpleDateFormat();
	parser.applyPattern("dd-mm-yyyy");
	oldValue = parser.format(oldValue);
}
	

response.setEntity("" + oldValue, MediaType.TEXT_PLAIN);

